package com.qyhl.module_home.home.fragment;


import com.qyhl.webtv.commonlib.entity.home.GatherBean;
import com.qyhl.webtv.commonlib.entity.home.HomeBean;
import com.qyhl.webtv.commonlib.entity.live.ShoppingListBean;
import com.qyhl.webtv.commonlib.entity.news.AdvHomeBean;

import java.util.List;

/**
 * Created by qyhl on 2017/11/8.
 */

public interface HomeFragmentContract {

    interface HomeFragmentView {
        void showError(String msg);

        void showEmpty(String msg);

        void setBanner(boolean isShow, List<HomeBean.TopNews> list);

        void setAdvBanner(boolean isShow, List<AdvHomeBean> list);

        void setNavigation(boolean isShow, List<HomeBean.SecMenus> list);

        void showMessage(String msg);

        void setGatherNews(List<GatherBean> beanList, boolean isMore);

        void setTopShop(List<ShoppingListBean> bean);

    }

    interface HomeFragmentPresenter {
        void getConfig();

        void getAdvData();

        void setConfig(HomeBean bean);

        void setError(int code, String msg);

        void setAdvBanner(boolean isShow, List<AdvHomeBean> list);

        void getGatherData(int page, int lastNewsId, String type);

        void setGatherNews(List<GatherBean> gatherBeans, boolean isMore);

        void getTopShop();

        void setTopShop(List<ShoppingListBean> bean);

    }

    interface HomeFragmentModel {
        void getConfig();

        void getAdvData();

        void getGatherData(int page, int lastNewsId, String type);

        void getTopShop();

    }
}
